package com.tuanzi.loan.vo.response.family;

import com.tuanzi.loan.core.vo.IdentityResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
public class LoanLargeAmountPlusRecordSearchResponse extends IdentityResponse{

    private String time;

    private String productName;

    private String whereForm;

    private String c_form;

    private String mobnum;

    private String approveamount;

    private String city;

    private String income;

    private String has_easten;

    private String has_car;

    private String life_insurance;

    private String social_insurance;

    private String credit;

    private String profession_type;

    private String user_level;

    private Integer status;

    private String approveStatus;

    private String has_weili;

    private String petname;
    public String getApproveStatus() {
        if (this.status == 0) {
            return "未提交";
        } else if (this.status == 1) {
            return "已提交";
        } else if (this.status == 4) {
            return "补充更新";
        } else if (this.status == 2) {
            return "申请失败";
        } else if (this.status == 3) {
            return "有资格待提交";
        } else if (this.status == 5){
            return "已提交(重复)";
        } else if(this.status == 6){
            return "失效";
        } else{
            return "未知";
        }
    }

    public void setApproveStatus(String approveStatus) {
        this.approveStatus = approveStatus;
    }
}
